from appium import webdriver
class Base():
    def __init__(self):
        cap={
              "platformName": "Android",
              "deviceName": "127.0.0.1:7555",
              "noReset": True,
              "appPackage": "com.xiachufang",
              "appActivity": "com.xiachufang.activity.home.HomeActivity"
        }
        self.driver=webdriver.Remote('http//:127.0.0.1:4723/wd/hub')
    def hua(self,a,b,c,d):
        self.driver.swipe(a,b,c,d)
    def jie(self,a):
        self.driver.save_screenshot(a)
    def tui(self):
        self.driver.quit()